import style from 'styled-components'
import logoPic from '../../statics/logo.png'

export const HeaderWrapper = style.div`
    height: 56px
    border-bottom:1px solid #f0f0f0
    position: relative
`;

export const Logo = style.a.attrs({
    href:"/"
})`
    display: block;
    width: 100px;
    height: 56px;
    background: url(${logoPic});
    background-size: contain;
    position: absolute;
    left: 0;
    top: 0
    
`;
export const Nav = style.div`
    width: 960px;
    height: 56px;
    margin: 0 auto;
`;

export const NavItem = style.div`
    line-height: 56px;
    padding: 0 15px;
    font-size: 17px;
    color:#333;
    &.left{
        float: left
    }
    &.right{
        float: right;
        color: #969696;
    }
    &.activ{
        color: #ea6f5a
    }
`;

export const NavSearch = style.input.attrs({
    placeholder: "搜索"
}) `
    width: 130px;
    height: 38px;
    pading: 0 15px;
    background: #eee;
`;